// 保存左侧菜单信息
import { constantRoutes } from '../../router/index'

const state = {
  menuList: [...constantRoutes]
}

const mutations = {
  setMenuList(state, asyncRoutes) {
    state.menuList = [...constantRoutes, ...asyncRoutes]
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

